<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>生成的海报 | 学术海报生成器</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container py-5">
        <h1 class="text-center mb-4">海报生成完成</h1>
        <div class="card shadow">
            <div class="card-body text-center">
                <h2 class="card-title mb-4">{{ title }}</h2>
                <div class="mb-4">
                    <img src="{{ preview_url }}" class="img-fluid border shadow" style="max-height: 700px;" alt="海报预览">
                </div>
                <div class="d-grid gap-2 d-md-block">
                    <a href="{{ poster_url }}" class="btn btn-success" download>下载海报 (PDF)</a>
                    {% if background_url %}
                    <a href="{{ background_url }}" class="btn btn-primary" download>下载背景图片 (JPG)</a>
                    {% endif %}
                    <a href="/" class="btn btn-outline-primary">创建新海报</a>
                </div>
            </div>
        </div>
    </div>
</body>
</html>